package com.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.entity.ArticleComment;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author gxcc
 * @create 2021/11/13 18:09
 */
@Service
public interface ArticleCommentService extends IService<ArticleComment> {

    /**
     * 查询评论通过评论id
     * @param articleId
     * @return
     */
    List<Map<String, Object>> queryCommentById(String articleId);

    /**
     * 查询评论信息(后台表格使用)
     * @param comment
     * @param username
     * @return
     */
    List<Map<String, Object>> tableList(String comment,String username);

    /**
     * 后台搜索表格重载
     * @param comment
     * @param username
     * @return
     */
    List<Map<String, Object>> queryCommentByCondition(String comment,String username);
}
